﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MiniFox.Platform.OAuth2.Events
{
    /// <summary>
    /// 
    /// </summary>
    public class PassportTokenVerifiedEventArgs : EventArgs
    {
        PassportToken _token;
        bool _verified;

        /// <summary>
        /// 
        /// </summary>
        /// <param name="token"></param>
        /// <param name="verified"></param>
        protected internal PassportTokenVerifiedEventArgs(PassportToken token, bool verified)
        {
            _token = token;
            _verified = verified;
        }
        /// <summary>
        /// 
        /// </summary>
        public PassportToken Token
        {
            get { return _token; }
        }
        /// <summary>
        /// 
        /// </summary>
        public bool Verified
        {
            get { return _verified; }
        }
        /// <summary>
        /// 
        /// </summary>
        public bool ThrowExceptionWhenUnverified { get; set; }
    }
}
